import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入字体图标
import './assets/iconfont/iconfont.css'
// 引入element-ui
import './plugins/element'
// 引入、注册全局组件
import myPagination from './components/my-pagination'
Vue.component(myPagination.name, myPagination)
// 先执行命令安装再导入编辑器
import VueQuillEditor from 'vue-quill-editor'
// 引入编辑器样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor)
import mixin from './utils/mixin'
Vue.mixin(mixin)

Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App),
  beforeMount() {
    // 挂载全局事件总线
    Vue.prototype.$bus = this
  },
}).$mount('#app')
